<?php
namespace backend\models;
use yii\db\ActiveRecord;

/**
 * @property int $id
 * @property int $admin_user_id
 * @property string $method
 * @property string $service
 * @property string $params
 * @property string $create_time
 * @property int success
 * @property int status_code
 * @property int ip
 *
 * User: Drery
 * Date: 2016/3/2
 * Time: 15:22
 */
class Log extends ActiveRecord
{
    public static function tableName()
    {
        return '{{%admin_log}}';
    }

    public function attributeLabels()
    {
        return [
            'service' => '链接',
            'admin_user_id' => 'admin',
            'ip' => 'ip',
            'method' => 'method',
            'status_code' => 'code',
            'success' => 'success',
            'create_time' => '时间',
            'params' => '参数'
        ];
    }
}